/*
 * =====================================================================================
 *
 *       Filename:  stream_offset.cpp
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  2015年11月18日 15时53分46秒
 *  Last Modified:  2021-09-18 21:57:05
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  zt (),
 *   Organization:
 *
 * =====================================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include <fstream>


char buffer[1024] = { 0 };

int main ( int argc, char* argv[] )
{
    ( void ) argc;
    ( void ) argv;
    std::ifstream ifs ( "a.bin", std::ifstream::binary );

    ifs.seekg ( 0x12, ifs.beg );
    ifs.read ( buffer, 0x12 );

    for ( int i = 0; i < 0x12; ++i )
    {
        printf ( "%2x ", buffer[i] );
    }

    return 0;
}

